# @author 菠萝吹雪
# @date 2024/4/19 15:01
import requests

header = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 "
                  "Safari/537.36"}
response = requests.get("https://movie.douban.com/top250", headers=header)
if response.ok:
    print("请求成功，打印内容：")
    print(response)
    print(response.text)
else:
    print("请求失败，状态码：", response.status_code)
